package main

import (
	"fmt"
	"strconv"
	"time"
)

func main() {
	params := struct {
		Timestamp string `json:"timestamp"`
		AppKey    string `json:"app_key"`
		NonceStr  string `json:"nonce_str"`
	}{
		Timestamp: "1672116097",
		AppKey:    "go_appid2023",
		NonceStr:  "abcdefghijk1234",
	}
	timeStampNow := time.Now().Unix()
	timeStamp, err := strconv.ParseInt(params.Timestamp, 10, 64)
	if err != nil {
		fmt.Println("转换失败:", err)
		return
	}
	fmt.Printf("参数 %T %v\n", params.Timestamp, params.Timestamp)
	fmt.Printf("转换 %T %v\n", timeStamp, timeStamp)
	fmt.Printf("当前 %T %v\n", timeStampNow, timeStampNow)

	fmt.Printf("%-20s%-32s\n", "姓名：", "OK")
	fmt.Printf("%-20s%-32s\n", "性别：", "OK")
	fmt.Printf("%-20s%-32s\n", "身份证号：", "OK")

}
